<?php

class Model_District extends Base_Model
{
    protected $_tableName = 'Table_District';
    
	protected $_fields = array(
			'aid','pid','name'
		);

    public function getPath()
    {
        $path = array();
        $pid = $this->pid;
        while ($pid) {
            $district = new Model_District();
            $path[] = $district->read($pid);
            $pid =$district->pid;
        }
        
        return $path;
    }
}